import Vue from "vue";
import VueRouter from "vue-router";

// 组件
import FindMusic from '@/views/FindMusic'
import Musician from '@/views/Musician'
import MyFocus from '@/views/MyFocus'
import MyLoad from '@/views/MyLoad'
import MyMusic from '@/views/MyMusic'
import MyShoping from '@/views/MyShoping'
import NotFound from '@/views/NotFound'

Vue.use(VueRouter)


const router = new VueRouter({
  mode:'history',
  routes: [
 
      {
        path: '/',
        redirect:'/music'
        
      },
  
    {
      path: '/find',
      component:FindMusic,
      
    },
    {
      path: '/music',
      component:MyMusic,
      
    },
    {
      path: '/focus',
      component:MyFocus,
      
    },
    {
      path: '/shopping',
      component:MyShoping,
      
    },
    {
      path: '/musician',
      component:Musician,
      
    },
    {
      path: '/load',
      component:MyLoad,
      
    },
    {
      path: '*',
      component:NotFound,
      
    },
  ]
})
export default router